.article-manage-container {
  padding: 24px;
  min-height: 100vh;
  background: #f5f5f5;
}

.article-manage-card {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.article-manage-card .ant-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px;
}

.article-card-header {
  display: flex;
  flex-direction: column;
}

.article-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
}

.article-card-subtitle {
  font-size: 13px;
  color: #909399;
  margin-top: 4px;
  font-weight: normal;
}

.article-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-title-input {
  flex: 1;
  min-width: 300px;
  height: 42px;
  font-size: 15px;
  border-radius: 8px;
}

.article-main {
  display: flex;
  gap: 24px;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.article-editor,
.article-preview {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  overflow: hidden;
  min-height: 0;
}

.article-editor {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.article-editor:hover,
.article-preview:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.md-textarea {
  min-height: 0;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
  font-size: 16px;
  border: none;
  resize: none;
  line-height: 1.6;
  padding: 16px;
  height: 100%;
  flex: 1;
  background: #fafbfc;
  border-radius: 8px;
  transition: all 0.3s;
  overflow-y: auto;
}

.md-textarea:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.article-preview {
  background: #fafbfc;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.preview-header {
  font-weight: bold;
  margin-bottom: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-body {
  flex: 1;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.7;
  padding-right: 10px;
  min-height: 0;
}

/* Markdown 内容美化 */
.preview-body h1,
.preview-body h2,
.preview-body h3 {
  margin: 16px 0 8px 0;
  font-weight: bold;
}
.preview-body ul {
  margin: 8px 0 8px 20px;
}
.preview-body blockquote {
  background: #f6f8fa;
  border-left: 4px solid #d1d5da;
  margin: 8px 0;
  padding: 8px 16px;
  color: #666;
}
.preview-body code {
  background: #f6f8fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 15px;
}

.article-layout {
  height: 100vh;
  background: #fff;
  display: flex;
}

.article-sider {
  background: #fafafa;
  border-right: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 10;
  height: 100vh;
  overflow: hidden;
}

.sider-header {
  padding: 20px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

.sider-header button {
  height: 42px;
  font-weight: 500;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: 0 2px 6px rgba(24, 144, 255, 0.15);
}

.article-list-header {
  padding: 16px 16px 4px 16px;
  color: #606266;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-menu {
  border: none;
  background: transparent;
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.article-menu .ant-menu-item {
  margin: 8px 0;
  border-radius: 8px;
  height: auto;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  transition: all 0.3s;
  min-height: 70px;
  background: #fff;
  border-left: 3px solid transparent;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  animation: fadeIn 0.4s ease-in-out;
  position: relative;
  overflow: hidden;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-menu .ant-menu-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1890ff, #52c41a);
  transition: width 0.3s ease;
  opacity: 0;
}

.article-menu .ant-menu-item:hover::after {
  width: 100%;
  opacity: 1;
}

.article-menu .ant-menu-item-selected {
  background: #f0f8ff;
  color: #1890ff;
  border-left: 3px solid #1890ff;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.1);
}

.article-menu .ant-menu-item:hover {
  background: #f5f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article-menu-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  padding-right: 24px;
}

.article-menu-title {
  font-weight: 600;
  font-size: 15px;
  color: #303133;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  line-height: 1.4;
}

.article-menu .ant-menu-item-selected .article-menu-title {
  color: #1890ff;
}

.article-menu-meta {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #909399;
  justify-content: space-between;
  width: 100%;
  margin-top: 4px;
}

.article-menu-time, 
.article-menu-word-count {
  font-size: 12px;
  color: #909399;
  display: flex;
  align-items: center;
  gap: 4px;
}

.delete-btn {
  opacity: 0;
  transition: all 0.2s;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #f56c6c;
  border-radius: 50%;
  height: 32px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-btn:hover {
  background: rgba(245, 108, 108, 0.1);
  color: #f56c6c;
}

.article-menu-item:hover .delete-btn {
  opacity: 1;
}

.article-content {
  display: flex;
  flex-direction: column;
  height: 100vh;
  flex: 1;
  padding: 16px;
  overflow: hidden;
}

.article-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.article-actions .ant-btn {
  height: 40px;
  border-radius: 6px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
} 